<template>
    <div>News</div>
    <button @click="emit('send-joy', 'joy')">测试</button>
</template>
<script setup lang='ts'>

import { onMounted, toRefs } from 'vue';
const emit = defineEmits(["send-joy"])





// onMounted(() => {
//    setTimeout(() => {
//        emit("send-joy", "joy")
//    }, 2000)
// })
</script>
<style scoped lang='scss'></style>
